﻿@model IEnumerable<JaxDug.Models.Features.Comment>
@if (false)
{ <script src="~/Scripts/jquery-1.5.1-vsdoc.js" type="text/javascript"></script> }
<label class="comment-list-label">
    @Model.Count() comments
</label>
<section class="comment-list">
    @foreach (var comment in Model)
    {
        <article class="comment" id="Comment-@comment.CommentId">
            @comment.Content
            @comment.User
            @comment.CommentCreated
        </article>
    }
</section>
<script type="text/javascript">
    $(function () {
        $('.comment-list-label').click(function () {
            $(this).siblings('.comment-list').toggle();
        });
    });

    //    $("dt.support-question").click(function () {

    //        if ($(this).next().is(':hidden')) {
    //            $('.support-answer').slideUp('fast');
    //            $('.faqmin').hide();
    //            $('.faqmax').show();
    //            $($(this).children("img")).toggle();
    //            $(this).next().slideToggle('fast');
    //        }
    //        else {
    //            $($(this).children("img")).toggle();
    //            $(this).next().slideToggle('fast');
    //        }
    //    }
    //    );
</script>